package org.sws.domain.award.model.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.sws.domain.award.event.SendAwardMessageEvent;
import org.sws.types.enums.TaskState;
import org.sws.types.event.BaseEvent;

/**
 * @Author sws
 * @Date 2025/3/24 11:40
 * @description: mq消息任务记录实体
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TaskEntity {
    /** 活动ID */
    private String userId;
    /** 消息主题 */
    private String topic;
    /** 消息编号 */
    private String messageId;
    /** 消息主体 */
    private BaseEvent.EventMessage<SendAwardMessageEvent.SendAwardMessage> message;
    /** 任务状态；create-创建、completed-完成、fail-失败 */
    private TaskState state;
}
